package HLLibClasses;

import HLCode.HLClassManager;
import HLCode.HLLibClass;
import HLCode.HLObject;
import HLLib.base.HLGraphics;
import HLLib.userControl.HLHandfereMenu;

public class HLClassHandfereMenu extends HLLibClass {
    public HLClassHandfereMenu(HLClassManager owner) {
        super(owner);
    }

    public HLObject NewObject() {
        return new HLHandfereMenu();
    }

    public void Execute(HLObject self, int index, HLObject args, HLObject resultOwnerObject, int resultIndex) {
        switch (index) {
        case 0: {
            if (resultOwnerObject == null) {
                ((HLHandfereMenu) self).Logic();
            } else {
                resultOwnerObject.SetInt(resultIndex, ((HLHandfereMenu) self).Logic());
            }
            break;
        }
        case 1: {
            ((HLHandfereMenu) self).Render((HLGraphics)args.GetObject(0));
            break;
        }
        }
    }
}
